package cn.jhz.learn.blog.service.core.open;

import cn.jhz.learn.blog.po.other.BlogComment;

import java.util.Optional;

public interface CommentService {
	public Optional<BlogComment> publishArticleComment(BlogComment newComment);
	public Optional<BlogComment> publishPhotoComment(BlogComment newComment);
	public Optional<BlogComment> publishEssayComment(BlogComment newComment);
	public Optional<BlogComment> publishGuestbookComment(BlogComment newComment);
	public Optional<Integer> removeArticleComment(Integer commentId);
	public Optional<Integer> removePhotoComment(Integer commentId);
	public Optional<Integer> removeEssayComment(Integer commentId);
	public Optional<Integer> removeGuestbookComment(Integer commentId);
	public void checkExist(Integer id);
}
